package stream;

import com.google.common.base.Objects;

public class AppIDBO {

  private String env;

  private String appid;

  private String index;

  private String logType;

  private String tenantId;

  private String srcTopic;



  public AppIDBO() {
  }

  public String getEnv() {
    return env;
  }

  public void setEnv(String env) {
    this.env = env;
  }

  public String getAppid() {
    return appid;
  }

  public void setAppid(String appid) {
    this.appid = appid;
  }

  public String getIndex() {
    return index;
  }

  public void setIndex(String index) {
    this.index = index;
  }

  public String getLogType() {
    return logType;
  }

  public void setLogType(String logType) {
    this.logType = logType;
  }

  public String getTenantId() {
    return tenantId;
  }

  public void setTenantId(String tenantId) {
    this.tenantId = tenantId;
  }

  public String getSrcTopic() {
    return srcTopic;
  }

  public void setSrcTopic(String srcTopic) {
    this.srcTopic = srcTopic;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    AppIDBO appIDBO = (AppIDBO) o;
    return Objects.equal(env, appIDBO.env) && Objects.equal(appid, appIDBO.appid) && Objects.equal(index, appIDBO.index) &&
            Objects.equal(tenantId,appIDBO.tenantId) && Objects.equal(srcTopic,appIDBO.srcTopic);
  }

  @Override
  public int hashCode() {
    return Objects.hashCode(env, appid, index,tenantId,srcTopic);
  }

  @Override
  public String toString() {
    return "AppIDBO{" +
            "env='" + env + '\'' +
            ", appid='" + appid + '\'' +
            ", index='" + index + '\'' +
            ", logType='" + logType + '\'' +
            ", tenantId='" + tenantId + '\'' +
            '}';
  }
}
